const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true, //脚手架自带服务器配置
  lintOnSave: false, //关闭语法检查
  devServer: {
    host: '127.0.0.1',//域名设置
    port: 8080,
    //配置代理跨域
    proxy: {
      '/api': {
        target: 'http://sph-h5-api.atguigu.cn',//获取数据服务器地址
        // pathRewrite: { '^/api': '/api' },
      },
    },
  },
})
